package com.kmxd.ams.core.common.constant;

/**
 * 流程常用常量
 *
 * @author ZuoLG
 */
public class FlowConst {

  /** 默认xml */
  public static final String DEF_XML =
      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
          + "<bpmn2:definitions xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\">\n"
          + "  <bpmn2:process id=\"{}\" name=\"{}_{}\">\n"
          + "    <bpmn2:startEvent id=\"StartStart_01ydzqe\" name=\"开始\" flowable:initiator=\"applyUserId\">\n"
          + "      <bpmn2:outgoing>Flow_1xw49mw</bpmn2:outgoing>\n"
          + "    </bpmn2:startEvent>\n"
          + "    <bpmn2:userTask id=\"Task_1yenioi\" name=\"审核\" flowable:candidateUsers=\"\"  flowable:candidateGroups=\"1621044363309000001\" flowable:users=\"\" flowable:groupType=\"users\" flowable:scopeType=\"0\" flowable:formKey=\"agree,agreedComplete,invalid\">\n "
          + "      <bpmn2:incoming>Flow_1xw49mw</bpmn2:incoming>\n"
          + "      <bpmn2:outgoing>Flow_1329dyf</bpmn2:outgoing>\n"
          + "    </bpmn2:userTask>\n"
          + "    <bpmn2:sequenceFlow id=\"Flow_1xw49mw\" sourceRef=\"StartStart_01ydzqe\" targetRef=\"Task_1yenioi\" />\n"
          + "    <bpmn2:endEvent id=\"End_14ipiih\">\n"
          + "      <bpmn2:incoming>Flow_1329dyf</bpmn2:incoming>\n"
          + "    </bpmn2:endEvent>\n"
          + "    <bpmn2:sequenceFlow id=\"Flow_1329dyf\" sourceRef=\"Task_1yenioi\" targetRef=\"End_14ipiih\" />\n"
          + "  </bpmn2:process>\n"
          + "  <bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">\n"
          + "    <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"process_1678412248044\">\n"
          + "      <bpmndi:BPMNEdge id=\"Flow_1xw49mw_di\" bpmnElement=\"Flow_1xw49mw\">\n"
          + "        <di:waypoint x=\"248\" y=\"230\" />\n"
          + "        <di:waypoint x=\"420\" y=\"230\" />\n"
          + "      </bpmndi:BPMNEdge>\n"
          + "      <bpmndi:BPMNEdge id=\"Flow_1329dyf_di\" bpmnElement=\"Flow_1329dyf\">\n"
          + "        <di:waypoint x=\"520\" y=\"230\" />\n"
          + "        <di:waypoint x=\"692\" y=\"230\" />\n"
          + "      </bpmndi:BPMNEdge>\n"
          + "      <bpmndi:BPMNShape id=\"StartEvent_01ydzqe_di\" bpmnElement=\"StartStart_01ydzqe\">\n"
          + "        <dc:Bounds x=\"212\" y=\"212\" width=\"36\" height=\"36\" />\n"
          + "        <bpmndi:BPMNLabel>\n"
          + "          <dc:Bounds x=\"219\" y=\"255\" width=\"23\" height=\"14\" />\n"
          + "        </bpmndi:BPMNLabel>\n"
          + "      </bpmndi:BPMNShape>\n"
          + "      <bpmndi:BPMNShape id=\"Activity_1yenioi_di\" bpmnElement=\"Task_1yenioi\">\n"
          + "        <dc:Bounds x=\"420\" y=\"190\" width=\"100\" height=\"80\" />\n"
          + "      </bpmndi:BPMNShape>\n"
          + "      <bpmndi:BPMNShape id=\"Event_14ipiih_di\" bpmnElement=\"End_14ipiih\">\n"
          + "        <dc:Bounds x=\"692\" y=\"212\" width=\"36\" height=\"36\" />\n"
          + "      </bpmndi:BPMNShape>\n"
          + "    </bpmndi:BPMNPlane>\n"
          + "  </bpmndi:BPMNDiagram>\n"
          + "</bpmn2:definitions>\n";

  /** BPMN文件后缀名 */
  public static final String FLOW_BPMN_FILE_SUFFIX = ".bpmn";

  /** 提交人的变量名称 */
  public static final String FLOW_VAR_SUBMITTER = "initiator";

  /** 提交人的内置变量名称 */
  public static final String FLOW_VAR_INITIATOR = "$INITIATOR";

  /** 档案所属部门ID */
  public static final String FLOW_VAR_ARCH_DEPT = "archDeptId";

  /** 发起人流程变量 */
  public static final String FLOW_CREAT_DEPT = "creatDept";

  /** 指派类型，候选 */
  public static final String ASSIGNMENT_CANDIDATE = "candidate";

  /** 备注类型，默认为event */
  public static final String COMMENT_TYPE_EVENT = "event";

  /** 自动跳过节点设置属性 */
  public static final String FLOWABLE_SKIP_EXPRESSION_ENABLED = "_FLOWABLE_SKIP_EXPRESSION_ENABLED";

  /** 流程业务id参数 */
  public static final String FLOW_VAR_BUSINESS_ID = "flowBizId";

  /** 流程审核状态 */
  public static final String FLOW_VAR_APPROVED = "approved";

  public static final String FLOW_VAR_COMMENT = "outcom";

  /** 流程发布状态1：发布 ，0：未发布 */
  public static final Integer FLOW_PUBLISH_1 = 1;

  public static final Integer FLOW_PUBLISH_0 = 0;

  /** 审批人角色 */
  public static final String FLOW_GROUP_ROLE = "role";

  /** 审批人岗位 */
  public static final String FLOW_GROUP_POST = "post";

  /** 审批人用户 */
  public static final String FLOW_GROUP_USER = "user";

  /** 所属角色或岗位查找 */
  public static final String FLOW_SCOPE_TYPE_0 = "0";

  /** 查找范围，创建人范围 */
  public static final String FLOW_SCOPE_TYPE_1 = "1";

  /** 查找范围，上一步处理人部门 */
  public static final String FLOW_SCOPE_TYPE_2 = "2";

  /** 查找范围，档案所属部门 */
  public static final String FLOW_SCOPE_TYPE_3 = "3";
}
